package com.dcivision.framework.taglib.channel;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.dcivision.framework.ApplicationException;
import com.dcivision.workflow.taglib.WorkflowPriorityTag;

public class AjaxWorkflowPriorityTag extends WorkflowPriorityTag {

  private Log log = LogFactory.getLog(this.getClass());
  
  /**
   * before use this method,please init the parameters,see the super class
   * @return
   * @throws Exception 
   * @throws Exception
   */
  public String getAjaxContext() throws ApplicationException{
    try{
      this.init();
      return this.getContent();
    }catch(Exception ex){
      log.error(ex.getMessage(), ex);
      throw new ApplicationException(ex);
    }
  }
  public void release(){
    super.release();
  }
}
